package com.fengmi.api.goods;

import com.fengmi.comm.ResultVO;
import com.fengmi.goods.MallGoods;
import com.fengmi.goods.MallGoodsSku;
import com.fengmi.goods.vo.MallGoodsAndCatVO;
import com.fengmi.goods.vo.MallGoodsCatVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("fengmi-goods")
public interface GoodsApi {
    @RequestMapping("/goods/mall-goods-cat/getAllGoodsCat")
     public List<MallGoodsCatVO> getAllGoodsCat() ;


    @RequestMapping("/goods/mall-goods/getAllGoodsAndCat")
    public List<MallGoodsAndCatVO> getAllGoodsAndCat();


    @RequestMapping("/goods/mall-goods/getAllGoods")
    public List<MallGoods> getAllGoods();

    @RequestMapping("/goods/mall-goods/getGoodsAndSku/{spuId}")
    public MallGoods getGoodsAndSku(@PathVariable Long spuId);


    @RequestMapping("/goods/mall-goods-sku/getSkuById")
    public MallGoodsSku getSkuById(@RequestParam("skuId") Integer skuId);
}


